package snake3d.main;

import processing.core.*;
import peasy.*;

public class Teste extends PApplet{
	PeasyCam cam;
	  public void setup() {
	    size(200,200,P3D);
	    cam = new PeasyCam(this,100); 
	    cam.setMinimumDistance(50);
	    cam.setMaximumDistance(500);
	  }
	  
	  public void draw() {
	    rotateX((float) -.5);
	    rotateY((float) -.5);
	    background(0);
	    fill(255,0,0);
	    box(30);
	    pushMatrix();
	    translate(0,0,20);
	    fill(0,0,255);
	    box(5);
	    popMatrix();
	  }
	  /*
	  public void draw() {
	    stroke(255);
	    if (mousePressed) {
	      line(mouseX,mouseY,pmouseX,pmouseY);
	    }
	  }
	  */
	
}
